<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><tiles:getAsString name="title"/></title>
<!-- getAsString name="title" title이름으로된놈을 가져와서 String으로 -->
<style type="text/css">

#container{
	width:821px;
	border: 1px solid black;
	margin:auto;
}
#header{
	padding: 5px;
	border-bottom: 1px solid black;
}
#left{
	padding: 5px;
	height:500px;width:200px;
	float:left;
	background-color:pink;
}
#content{
	padding: 5px;
	width:600px;/*내용에 따라 늘어나도록 처리하기 위해 height는 주지 않는다. */
	float:left;
}
#footer{
	padding-top:5px;
	border-top: 1px solid black;
	clear:left;
	text-align:center;
	height:50px;
}
</style>
</head>
<body>
<div id="container" >

	<div id="header">
        <tiles:insertAttribute name="header" />
	</div>

	<div id="left" >
        <tiles:insertAttribute name="left" />
	</div>

	<div id="content" >
        <tiles:insertAttribute name="main" />
	</div>

	<div id="footer" >
        <tiles:insertAttribute name="footer"/>
	</div>
</div>

</body>
</html>